package binary;

public class ComplementDemo {
    public static void main(String[] args) {

        int m = -45;
        System.out.println(Integer.toBinaryString(m));
        System.out.println(m);




        /*
        int max = Integer.MAX_VALUE;//最大值
        int min = Integer.MIN_VALUE;//最小值
        System.out.println(Integer.toBinaryString(max));
        System.out.println(Integer.toHexString(min));
        System.out.println(Integer.toHexString(-1));
        */
    }
}
